/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

/**
 *
 * @author CUNEYT
 *
 * This class represents the Artifact item in a museum/gallery.
 *
 */
public class Artifact implements java.io.Serializable {

    private String id;
    private String name;
    private String creator;
    private String creationDate;
    private String creationPlace;
    private String genre;
    private String category;

    public Artifact() {
        super();
    }

    public Artifact(String id, String name, String creator, String creationDate, String creationPlace, String genre, String category) {
        this.id = id;
        this.name = name;
        this.creator = creator;
        this.creationDate = creationDate;
        this.creationPlace = creationPlace;
        this.genre = genre;
        this.category = category;
    }
    public static final String NAME = "name";
    public static final String CREATOR = "creator";
    public static final String GENRE = "genre";
    public static final String CATEGORY = "category";

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getCreationDate() {
        return creationDate;
    }

    public void setCreationDate(String creationDate) {
        this.creationDate = creationDate;
    }

    public String getCreationPlace() {
        return creationPlace;
    }

    public void setCreationPlace(String creationPlace) {
        this.creationPlace = creationPlace;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public String getGenre() {
        return genre;
    }

    public void setGenre(String genre) {
        this.genre = genre;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return getId() + " " + getName();
    }

    public String toPrintable() {
        StringBuilder sb = new StringBuilder();

        sb.append("Id:");
        sb.append(getId());
        sb.append('\n');
        sb.append("Name:");
        sb.append(getName());
        sb.append('\n');
        sb.append("Creator:");
        sb.append(getCreator());
        sb.append('\n');
        sb.append("Creation Date:");
        sb.append(getCreationDate());
        sb.append('\n');
        sb.append("Creation Place:");
        sb.append(getCreationPlace());
        sb.append('\n');
        sb.append("Genre:");
        sb.append(getGenre());
        sb.append('\n');
        sb.append("Category:");
        sb.append(getCategory());
        sb.append('\n');

        return sb.toString();
    }
}
